package com.dhecp.project.system.service.impl;

import com.dhecp.project.system.mapper.SysCommonMapper;
import com.dhecp.project.system.service.SysCommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName SysCommonServiceImpl
 * @Description TODO
 * @Author alula
 * @Date 2020-11-26 16:20
 */
@Service
public class SysCommonServiceImpl implements SysCommonService {

    @Autowired
    private SysCommonMapper sysCommonMapper;

    @Override
    public String createDataCode(String organId, String codeId) {
        Map<String,Object> params = new HashMap<String, Object>();
        params.put("organId", organId);
        params.put("codeId", codeId);
        params.put("grow", 0);
        return sysCommonMapper.findCommonCreateCode(params);
    }
}
